package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.TAdsbHistoryData;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * @Auther: Stanley.Y
 * @Date: 2024/7/12
 * @Description:
 * @Version 1.0.0
 */

public interface AdsbHistoryDataMapper {

    public int saveInitParams(TAdsbHistoryData tAdsbHistoryData);

    // 根据id查询记录
    public TAdsbHistoryData findByID(@Param("id") int id);

    // 更新status和result字段
    public int updateStatusAndResult(TAdsbHistoryData adsbHistoryData);

    // 获取最新n条数据
    List<TAdsbHistoryData> findLatestNRecords(@Param("lastCount") int lastCount);
}
